from peewee import *

database = MySQLDatabase('laoxu', **{'charset': 'utf8', 'sql_mode': 'PIPES_AS_CONCAT', 'use_unicode': True, 'host': '192.168.10.166', 'port': 3306, 'user': 'a', 'password': '110'})

class UnknownField(object):
    def __init__(self, *_, **__): pass

class BaseModel(Model):
    class Meta:
        database = database

class CarsAudiBanzhou(BaseModel):
    cid = CharField(null=True)
    cylinder = CharField(null=True)
    desc = TextField(null=True)
    engine_code = CharField(null=True)
    diff_mech = CharField(null=True)
    displacement = CharField(null=True)
    drive = CharField(null=True)
    id = IntegerField()
    label = CharField(null=True)
    pid = CharField(null=True)
    position = CharField(null=True)
    transmission = CharField(null=True)

    class Meta:
        table_name = 'cars_audi_banzhou'

